<template>
  <div id="AccumulationFund">
    <!--<img style="margin-bottom: 20px;" width="100%" height="100%" src="https://nfzjszlb.jst.zj.gov.cn/serverfile/zheliban/icon/DSF/40.png" alt="">-->
    <!--<div class="list">-->
    <!--<ul>-->
    <!--<li v-for="(item,index) in listData" :key="index">-->
    <!--<p>-->
    <!--<img :src="item.icon">-->
    <!--</p>-->
    <!--<p>-->
    <!--<span>{{item.name}}</span>-->
    <!--</p>-->
    <!--</li>-->
    <!--</ul>-->
    <!--</div>-->
    <!--<p style="text-align: center;">咨询电话 0571-2935789</p>-->
    <!--&lt;!&ndash;      <van-button style="margin-right: 10px;" size="small" type="info" @click="getinsertDataView">提交</van-button>&ndash;&gt;-->
    <!--<div style="padding: 0 10px;margin-top: 20px;">-->
    <!--<van-button @click="saveData" round block type="info" native-type="submit">公积金提款</van-button>-->

    <!--</div>-->
    <!--<div style="height: 60vh;text-align:center;padding-top: 20vh;">-->
    <!--<div style="margin-bottom: 10px;">-->
    <!--<img src="https://nfzjszlb.jst.zj.gov.cn/serverfile/zheliban/icon/DSF/50.png">-->
    <!--</div>-->
    <!--<div>建设中，敬请期待！</div>-->
    <!--</div>-->
    <img @click="goLoginUrl" width="100%" height="100%" src="https://nfzjszlb.jst.zj.gov.cn/serverfile/zheliban/icon/EJIMG/3公积金提取.png" alt="">
    <el-button @click="goLoginUrl" type="primary" style="display:block;margin:0 auto">一键办理</el-button>
  </div>
</template>
<script>
  import {
    FileServerProxy,
  } from "../../utils/api";
export default {
  name: 'AccumulationFund',
  data () {
    return {
      listData: [
        {
          name: '一键办理',
          icon: 'https://nfzjszlb.jst.zj.gov.cn/serverfile/zheliban/icon/DSF/43.png'
        },
        {
          name: '便捷高效',
          icon: 'https://nfzjszlb.jst.zj.gov.cn/serverfile/zheliban/icon/DSF/44.png'
        }
      ]
    };
  },
  methods: {
    saveData () {

    },
    goLoginUrl () {
      ZWJSBridge.openLink({
        "url": "https://portal.zjzwfw.gov.cn/portal/page/athena-view.html?pageId=11389&_tesseract_=true"
      }).then(res => {
      }).catch(err => {
        window.open("https://portal.zjzwfw.gov.cn/portal/page/athena-view.html?pageId=11389&_tesseract_=true")
      })
    },
    getData: async function(){
      let params = {
        "accessCode": "4f54c919615d11ec87416805cab640a0",
        "cityCode": "441300000000",
        "params": {"zjh":"330622197502094617"}
      }
      const res = await FileServerProxy(params);
    }
  },
  mounted () {
    this.getData()
    if (ZWJSBridge) {
      ZWJSBridge.setTitle({
        "title": "公积金提取"
      }).then(res => {
      }).catch(err => {
      })
    }
  }
}
</script>
<style lang="scss" scoped>
#AccumulationFund {
  .list ul li {
    float: left;
    width: 50%;
    height: 160px;
    text-align: center;
  }
}
</style>
